core: move NTOHL and friends into byteorder.h

Same indentation as the other comments.