Make changes needed to compile on windows

Not yet fully tested, but tut3, tut8, boardz and kivented all now seem to run OK on windows!