pkg/libcoap: fix build AND tests: add one to ensure it does not break in the future

Commit message does not fit changes anymore. Have a look at https://github.com/authmillenon/libcoap/tree/riot-port for a start.