building support on windows

- just a few fixes for things which were failing on windows when i tried to build a package