Forgotten config.h include broke LLVM 3.2.
Use the default opt switch in the LLVMAPI mode (which is -O2\!) even though it's a bit risky now, as that's what the scripts version has done.