Fix even more pedantic clang warnings, enable warnings in debug mode