- Added #include <sys/types.h> where needed for FreeBSD. - Added protection for #include <sys/{socket,un}.h>.