Fixed errors for the win32 build