I was accidentally truncating numbers when casting to long on machines that don't have longs that are 8 bytes. Fixes #5