however some points use a timeout with select or wait_for to poll a condition at the same time.
Switched from qmake to cmake. Code changes to make it compile.