Check Q_OS_UNIX definition instead of nonexistent Q_OS_X11