Return safefile to being all C code again.

Whatever build failure prompted the change of safe_open.c to a C++ file
doesn't appear to be a problem anymore.