first pass for port to Windows VS2012, 32 and 64 bit