[util] Use setlinebuf() if present To work around mysterious bug on OS X. Fixes https://github.com/harfbuzz/harfbuzz/issues/727