Fix build on osx mountain lion