Fix compilation with Qt >= 5.2

timerWait needs timespec as argument (not timeval as in previous versions)