In AUS you should be just fine. The UA gates are right next to CO. One minute walk, at most.
I'd feel a bit itchy about 40 min at IAH (that's just me) but since you are on an early morning flight, barring any weather, etc, you should be ok. Just sit near the front of the plane, if you aren't already.