Bits and bobs to compile on Windows