Fixed bugs to get this working on windows with CMake