Fix dummy driver, and provide -O2/3 during LTO

(FIXME: find out what the default flags are)