Make clang plugin build on OSX
Fix crash on trunk clang