CMake: fixes 64 bit Visual Studio IDE build. Fixes bug 4936.