Was Glut in the Myconid Colony when you killed Spaw? I had Glut elsewhere when I killed Spaw this last playthrough, and he didn't become hostile. Though, I couldn't let him setup shop in the Duergar camp, or he'd get stuck down there when I told him Spaw was dead. I had to Walk him up to Gekh Coal, then fast travel with him to the Myconid Colony to tell him about Spaw.