check for pie while linking - not compiling.

On Linux clang seems to use the gnu linker, and fails when linking
with clang-native / os-x style pie arguments. This has the benefit
of fixing the wrap hack for the clang / linux tests.