First attempt to make it work on Windows