fixes to get bitshares compiling on windows