Rename functions to avoid conflicts with libc.