I usually do Library to get quick culture (usually play scientific civs, especially Persia). If I'm in the middle of a major war and need a quick healup of my forces on the front lines, a Barracks. Sometimes a Temple if I'm short of luxuries/may not be able to connect the city quickly. Usually I try to have enough luxuries that this isn't needed.
Occasionally an Airport or Harbor, but only under special circumstances.