Add FreeBSD defines to the Socket code