ugly hack to make it work on windows