Changes necessary for building on Windows

Please see following code for necessary changes for building on Windows w/ Visual Studio 2012, w/ no errors and no warnings.