fix some win32 compiles errors