Toll Brothers swings to profit in Q4