make .a link groups work also when linking just to bitcode; fixes #2568