Fixed tiff compilation error and wx.print.