Fix bug described in #3.
Fix bug #1, due to the fact that Boost.Endian wasn't up-to-date.