distcheck fixes