bugfix: long is i64 on 64-bit OSX