Fix compiler warnings
Enable all warnings, and fix warnings