Mandelstam cuts and lightlike Wilson loops in N=4 supersymmetry