First attempt at a fix for big-endian archs.

Given that I don't have an ARM device to compile on, this is pretty
theoretical.