Fixed build for OS X

This will also fix ReDetection/homebrew-qtox#1