Enforced -Wall on compiling, corrected some minor stuff diagnosed by it.