CMake fixes for win32, as well as return on bool funcs.