io: need to use libc for OS X?
more libc fixes.
libc: test "1 strerror" since zero gives different output on different platforms.
libc: fix tests using.