Drink lots of liquids before take off, don't take alcohol or coffee or caffeinated beverages on the flight and 24 hours before. Try to get a good night sleep before, and get up every 30 minutes or so and get your blood flowing (stretching and stuff like that, don't go running around..).