Added -Wall, took care of a bunch of compiler warnings