Fixes windows build.

This fixes the issues referenced in #103