Windows build: Update source files to build under Windows

This is the 2nd step to make nupic.core builds under and to Windows.