OSX compatibility
Merge pull request #4 from pfandrade/OSX_compatibility

OSX compatibility