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
Can you try hooking these up in `build_tools/build_detect_platform`? It seems like the right place to add new flags for platform compatibility.