Use standard integer types for compatibility with libtiff 4.3.0 (#1377)