host: Fixed a handful of Windows build issues. May break Linux build.