Added clang only functions because of buggy GCC

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41933