Set CFITSIO_LIBS=-lcfitsio if PKG_CHECK_MODULES fails
fix library order


git-svn-id: svn://svn.code.sf.net/p/healpix/code/trunk@440 5e3cd54f-fed5-4059-89be-b68eacfec290
additional patches by Leo Singer


git-svn-id: svn://svn.code.sf.net/p/healpix/code/trunk@441 5e3cd54f-fed5-4059-89be-b68eacfec290