getting build errors with clang

https://bugs.launchpad.net/ubuntu/+source/llvm-defaults/+bug/1198123