Removed unused YACCFLAGS
Apply -Werror to src/ only

Third party dependencies (such as googletest) may trigger compiler
warnings.