Support for BG/Q static libraries.
Change build to create both static and shared libraries.