Enable -Werror and fix warning