bitfury: Portability fixes, including big endian compatibility