fix runtime problems with tiff - refs mapboz/mason#7