Fixed bugs with regard to libtiff download