a few extra fixes, start adding GCC diagnostics to renable -Werror