Exclude some functions that aren't on win32.

This commit licensed as MIT/X11.
Update msvc .def files.

This commit licensed as MIT/X11.