libcoap cloned from http://git.code.sf.net/p/libcoap/code