stdio: Work around compilation error due to renameat() on Solaris 10.