fix for compilation in OS X