support of LLVM trunk
fixing error for LLVM trunk
Merge pull request #793 from ifilippov/master

Support LLVM trunk (build and errors)