Add check for pthreads to configure script.
Fixes for various warnings.
Update to draft-ietf-core-coap-18.

Primary change is changing the accept option from 16 to 17.

Closes #14.