CMake build adjusted for Windows compilation.