[WIN32] build fixes.

additions to build this on windows.