Add wrappers for dangerous libc/Windows functions