Fix win32 compile errors