scripts/build.sh: more debug output
scripts/build.sh: more debug output

This change outputs the config.log when configure failed.
Moreover, a local cunit.pc will be output to see why the build still
fails.

authmillenon/libcoap,authmillenon/libcoap,authmillenon/libcoap