pkg/libcoap: fix copmilation problems

Apparently all that whitespace was needed after all.
Next convert to new-style function declrations.
Also, don't prevent make from noticing a failing patch.
tests: add libcoap compilation test