- Some changes to get it compiling statically on windows