Support shared libraries in cray builds.