(build) first round of win32 fixes