fixed a type warning for chunknums (unsigned int)
changed to new CCNTLV packet header format (as of Nov 2014).
This is very provisional - it could be that the semantics if
some fields changes, e.g. payloadlen becoming packetlen,
or hdrlen only covering the optional header field bytes instead
of the full header. This could be finalized in January 2015.