update mac example.

Tested only on a 10.9.3 mac
Merge pull request #1 from ThomasLengeling/master

update mac example.