Generalize config for internal hashdist builds

This is needed to build Proteus correctly from within a hashdist build.
I'm sure you know this, but on garnet, we have to replace  '-lblas' with '-lacml'.