Fix two compile errors in new endgame code