Make it build on OS X
Fix how bits are handled in LSB* algorithms
Things seem to be big endian
The dot is part of the extension
size_t is 8 bytes in OS X