Fix invalid open() usage
Better fix for open()
Fix connect automatic test for kfreebsd
Merge branch '1.12'