Added a bunch of other compiler warnings, and fixed errors.