Clang3.4 port

Ported to compile and pass tests with Clang3.4 (except for the remove-variables.cl which didn't work for me in the first place).