Fix build/linker errors against llvm 3.5