Added missing headers for FreeBSD.