Transitioned to CMake + MinGW (cross-compile)

Also updated code to fix breakage from updates to dependencies
Forgot a gitignore file
Ignore build directory