fix up some compiler errors