renameat: port to Solaris 10, which declares renameat in unistd.h