Add missing headers to ensure p_realpath() is found on OpenBSD.
Add missing prototype for p_realpath() to fix an undefined reference.