fix #22 crash on windows 64bit