Fix some issues with the OSX port

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
6 files changed