Properly test for some dependent libraries; don't just assume elsewhere in Open MPI's configury will find those libraries. Also consolidate some CPPFLAGS and clarify some comments.