Support varying build optimization levels