Add build system plumbing for building with -Werror.