[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`.
[fix] set cmake static link command for clang++ and g++ globally
Merge pull request #1215 from shelhamer/clang-whole-archive

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