Fixed up a bunch of compiler warnings