Support shared libraries in cray builds.
Fix c-scanner regex pattern