#132 corrects port to win32 and adds support to win64