Fixed up some compiler warnings