some fix for qt interface

this fix the issue #3599 with a simple fix based on NativeApp.cpp and a problem with zlib on ubuntu 13.04