fixed to work with latests clang svn