add '-Wall -Werror' comopile options, and remove compile warning