ccanlint: avoid segfault when module_builds' linking fails