fix for compiling under llvm