Fix warnings while compiling for win32