Changed order of cmake libraries