configure: fix -Werror builds