[CMake] changed order in required libs.