Make library run on windows