Enable warnings when compiling and fix a few.