Added support for OS X
Fixed wrong argument to function call
Merge pull request #5 from RaetProtocol/master

Added support for OS X