Make some attempts at working on windows (ref #1)