Fix MinGW build
Add missing LLVM 3.5 intrinsic and add support for LLVM 3.6.