Fixed some socket length inconsistencies for unix. Ported examples 01 and 02 to xcode as target. .gitattributes needs fixing still