Add a trivial implementation of `perror()`. Fixes #46100 Signed-off-by: Christopher Friedt <cfriedt@fb.com>