fix objects build with CMake