PFM support from Gregor Mueckl
Make gif and pnm tests dependent on their test dirs and libraries being found