Fix warnings, enable -Werror.