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).

Also includes a fix to issue #69 as the last change.