brew instead of apt-get if on OS X
fix multi-threading
Merge branch 'master' of git://github.com/yasyf/xkcd-hashing into yasyf-master