Work around broken Apple libc headers