io: need to use libc for OS X?