Simple CBOR encoder in a single C99 header file