Clean up release builds in CMake