Three dimensional viscous flows with a free surface: flow out of a long square die