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
Check out `build_tools/build_detect_platform`