additional fixups for win32 ffi build