Applied Akshay Bhat's changes for Mac OS X compilation
See https://code.google.com/p/word2vec/issues/detail?id=1#c5