Remove -Werror and unsupress warnings about unused functions/variables