Fix for pthread flag usage with clang.