mescc: dup, dup2: Move to libc.