Fixed compile errors on Win32