tests,build: Fix distcheck.