Better using of CFLAGS:
- in Makefile globally (but better to replace gcc by $(COMPILE) later)
- propagate build flags from rpm
Warnings fixes: function declarations. Add functions to gridsite headers, included new headers, ...