Add DISABLE_UNSAFE_OPTS setting.

This allows the compilation to explicitly opt-out of LLVM optimisations
that are suspected to be unsafe.