SSL + FreeBSD + minor fixes

Please let me know what you think