Adjust chpl_task_maxPar() to take maxThreads into account.

For fifo and massivethreads tasking, the chpl_task_getMaxPar() function
wasn't taking into account any limitation on the number of threads.  Now
it does.
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.
Simplify chpl_task_getMaxPar() in response to review.
Merge pull request #227 from gbtitus/maxTaskPar-reflect-numThreads

Adjust chpl_task_maxPar() to take maxThreads into account.

For fifo and massivethreads tasking, the chpl_task_getMaxPar() function
wasn't taking into account any limitation on the number of threads. Now
it does.

[Reviewed by @ronawho.]
Merge pull request #228 from ronawho/fix-hwloc-build-for-pgcc

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 2f9e3f7 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.