Fix config and libtiff inclusion everywhere