Fix compilation of drivers with -O0