Fix return type from read and allow a debugger to be attached on OS X.
Fix return type from read and allow a debugger to be attached on OS X.

marsupial/cling,karies/cling,karies/cling,karies/cling,root-mirror/cling,karies/cling,marsupial/cling,karies/cling,root-mirror/cling,marsupial/cling,root-mirror/cling,root-mirror/cling,marsupial/cling,root-mirror/cling,marsupial/cling,root-mirror/cling,marsupial/cling,karies/cling