When I went through Quito this past May la migra and customs did not take long at all - about 30-40 minutes for a mid-day arrival. The new airport is well designed. So although it was my destination and I was not transferring I suspect 2 hours for transfer is probably quite safe.