Fix htobe64 issue on OS/X.

Cherry-picked from

https://github.com/HowardHinnant/rippled/commit/684644c3f9c2fc122e0504df324f5186f6561e77
Merge branch 'develop' of github.com:rec/rippled into rpc