Bug #1110: Cray builds break if explicitly passed compiler
On Cray systems, passing explicit compiler options to ./build lead to
build errors. It's because Cray systems provide compiler wrappers by
loading corresponding environment modules such as PrgEnv-gnu(for gcc).
Modified scripts to prevent build errors even when user passes explicit
compiler options to the build script.