core: move NTOHL and friends into byteorder.h

Forgot about that, fixed.