changed header files for libcoap 4