Check for tiff headers and library and add --with-tiff-libdir option to configure script