improve support for Clang / pie