Add support for LTO and sanitizer variants to the driver and bootstrap script

Can you please a TODO to detect the version?