Fix to build with latest llvm trunk. Should be safe for older versions.