Pull both calls to get into one function, and wrap with the appropriate
reference count if flow control is enabled.
Fix compiler warning (signed/unsigned comparison)
Fix compiler warnings: remove unused variables
Improve some comments
This commit compliements/completes r30140.  r30140 made all the
configury/Makefile.am changes; this commit renames the internal
installdirs.h framework struct field names to match the configry macro
names:

 * pkgdatdir ->	ompidatadir
 * pkglibdir -> ompilibdir
 * pkgincludedir -> ompiincludedir