build on windows
ad hoc fixes