fix for compiling on macosx w/ clang