fix linker error (undefined reference to symbol 'pthread_create@@GLIBC_2.1')