tif_mosaic: Portability issues