haiku: add missing definitions found from building nix.
haiku: add missing definitions found from building nix.

cactorium/libc,rust-lang-nursery/libc,rust-lang-nursery/libc,cactorium/libc,rust-lang/libc,cactorium/libc,rust-lang-nursery/libc,rust-lang/libc,rust-lang/libc