Fixed errors on Clang trunk and Intel graphics.