Fixed up some compiler errors