Add explicit pthread library for build in linux