lib: workaround potential llvm as issue

This might be related to the glibc version used if on a linux system,
not quite sure yet. However, this works around the issue completely for
now