Fix undefined calls to swap_endian

The previous commit refactored some names a little for consistency, but
I forgot to build before committing (in a rush), and I forgot to change
some of the names in its definitions and uses.