Add libtiff

This complements https://github.com/numenta/nupic/pull/1415 to bring the libtiff branch into master.