Updated compatibility with windows 64bit.