Check Q_OS_UNIX definition instead of nonexistent Q_OS_X11
Merge pull request #21 from jstamp/fix_q_os_x11

Check Q_OS_UNIX definition instead of nonexistent Q_OS_X11