configure: With -Werror, add -Wno-error=deprecated-declarations.