additional fixes for win32 project