Fix hwloc build for pgcc

pgcc does not support the -static flag. They have their own version, -Bstatic.
This isn't a problem for PrgEnv-pgi since the PrgEnv wrapper translates -static
to the appropriate command.

See 2f9e3f73cf0afebd2b20870586569fc71c76d02e for more info. Note that we didn't
used to just test pgcc without the wrappers but I believe we do now to try to
test for users who just use the pgi compiler not on a cray.