[fix] translate g++ whole archive to force load for clang++ compilation

To build with the layer registry clang++ requires `-force_load` as
g++ requires `--whole-archive`.