pack.h: new function pack_bytes(), use nx_uint8_t

pack_bytes calculates the needed bytes for a given format string
Merge branch 'master' of github.com:dgarth/foll_inf_uni-goettingen_ws1213