Fixed OS X build