Fixed a build error of qt interface on Linux

This fixes the build issue mentioned in #2124.

#2124 fixes the issue for building sdl application with cmake on linux.

Yet Qt interface is built with qmake, thus must be handled separately.