In Linux, GCC appears to process -pthread as '-D_REENTRANT -lpthread'. Just in case the _REENTRANT still does something useful on a target platform, this commit adds this missing -pthread flag during compilation.