Fixes for building on Windows with msys.

On Windows $(OUT_DIR) is a Windows path, it needs to be quoted so the backslashes aren't treated as escape characters. I can cargo build on Windows under Msys with this change.

The CMake generator also needs to be specified on Windows, otherwise it will default to generating Visual Studio projects.