cleanup: use less permissive compiler warnings, and fix stuff here and there