libtiff: modernize
libtiff: add test

Closes #35362.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>