core: move NTOHL and friends into byteorder.h
sys: use byteorder.h in cbor.c
core: allow inclusion of byteorder.h in C++ code
Merge pull request #1984 from Kijewski/net_help-is-odd

core: move NTOHL and friends into byteorder.h