Makefile: Define GNU_SOURCE to silence vasprintf warnings
debug.h: Check return value from vasprintf

This silences warnings (#5) and prevents possible memory errors in the case
of a failure.
Merge pull request #6 from clibs/fix/compilation-warnings

Fix compilation warnings