Updated CMake build system and gitignore files to work on Windows