fixed build for OS X
Merge pull request #225 from ReDetection/master

Fixed build for OS X