-Weverything -Werror -pedantic

and fix relevant warnings