Use \n line endings.
Change file permissions from 755 to 644.
Fix recv() issue on OS X.

The previous fix was wrong, had to use setsockopt() instead.
YOLO coding is best coding.
Merge pull request #2 from anders/master

unix stuff