cpp: tiff: Add checks for size typedefs

Add compatibility typedefs if absent.