Make the Websockets example compile on Mac OS X, along with some other little patches.
Merge pull request #7 from cynthia/master

Make the Websockets example compile on Mac OS X