Add wrappers for libc/Windows functions