Fixed OS X compilation issue