Windows build: Updated cmake and included appveyor

This PR is the last step to make nupic.core builds under and to Windows.