Fix AGL build