QFileDialog include moved to top of file as it clashes with X11 include when building under linux, else all works including mac encoded textures being read under linux