network: use return value from Semaphore::acquire to detect timeout
scripts: remove -Wfatal-errors from defaultFlags.py, as this option truncates errors