Added 64bit support. Fixes #1