Fix compat_basename_r() prototype.