Tweak Makefile for building on BG/Q

* Omit some gcc flags not present on Power 
* Allow additional C,CXX,LDFLAGS to point to custom dependency install path
Where would that happen? This is the only occurrence of gflags in this file.