Fixed tiff compilation error and wx.print.

Now tiff compiles even with built-in zlib, but somehow codelite throws an error message that it doesn't finds wxzlib while gmake and codeblocks targets work as expected, so it may be a codelite only issue.

Compiling with built-in jpeg throws some error messages (boolean not defined) maybe because of conflicts with my already installed jpeg library.

Added flush to wx.print so it displays text immediately.