Fix buffer allocation in pipe for Mac OS X

Fixes Issue #46 and suppresses a warning for unused function.