fix to compile correctly on osx 10.9 Mavericks