add TIFF write support to cmake build