Fix compilation on Mac OS.
Simplify getReadTimeout.
Work in progress.