Add support for building on Windows - Visual Studio 2013

Add Windows build support & fix a few compiler warnings.