I usually aim for 75-90 minutes prior to departure -- it usually takes about 45 minutes to get through, but can be slower (or faster). Two hours is fine, and best to hedge bets on traffic at any rate.
Lounges are not worth planning extra time for.
tb