Add '-Wl,-pie' check to squash clang warnings

Clang on OSX doesn't like the `-pie` linker flag, instead it's expecting `-Wl,-pie`. This adds a check for `-Wl,-pie` linker flag support and opts to use it when valid.