Add support for verbose build mode, make V=1 to see GCC output.
Support overriding CFLAGS, CPPFLAGS and LDFLAGS and drop -lresolv