Fixed some win32 compiling issues.