Import patches for 10.x FreeBSD.

Missing are:
	- ftp handler
	- clog
	- rtsol(needed?)
	- maybe some other one missed in convertion