CMake fix for non-MSVC platforms.