Fix compilation of gpushd on FreeBSD.

There were errors with the endianness include used on FreeBSD.