Add fixes for libtiff