fix #46 for Windows