clean up a bunch of compiler warnings