fixed AAI can only build airplanes
fixed compilation issues