GCC link error fix: link against pthread