Handle extension flags and optimization levels