Fix stringopts bug
fix crash
Add c99 check
Fix local contact on accept, leaks
Fix leaks
Add missing header