Hack to make osx 10.8 happy-ish.