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

Normally yes, but they can sometimes be used together (e.g. AddressSanitizer and LeakSanitizer). I figured that we can probably add the semantic checks later.