fix for compilation on osx