Fixed build for OS X

This will fix ReDetection/homebrew-qtox#1