core: move NTOHL and friends into byteorder.h