compile fixes for Win32 mode
compile fixes for Windows