Gold Fields swings to profit, lifts dividend