Some fixes so basic_example builds on Win32
Cleanup
Win32 compile fix