Trying a hybrid of the two approaches for finding HDF5 compile flags.

Hopefully this fixes HDF5 static libraries on Linux.

git-svn-id: svn+ssh://svn.code.sf.net/p/xmds/code/trunk/xpdeint@2965 41b19578-b77a-4e3b-9682-c8570d237623