Hook libc syscalls on Mac OS X