win32: compilation fixes.