replaced htons/ntohs by be16toh/htobe16

although the former are a little more standard than
the latter, we already require be64toh (for grd5read.c)
so this removes a dependancy