Fixed a bunch of compiler warnings