Modify compilation to work on windows