fix for llvm3.2 compatibility