Make the compiler more verbose, fix a lot of warnings