fix: remove some warnings, harden the compilation flags.