build: get tests running under distcheck