build: add a "-Werror" option and fix build error

No match.