News Corp posts quarterly loss on restructuring charge