tiff output: tentatively fix compilation with libtiff 3.9 which lacks tmsize_t
(cherry picked from commit 3537a806ec92c1717bdd9b6920119e3bbcfb0fad)