Makefile: Depend on headers as well
Small Makefile optimizations.

- Lowercase GITREV variable.
- Allow amending CFLAGS and LIBS from command line