move htonl() + friends to util.h