Updated bench to support OS X build.