Fixed error: undefined reference to symbol 'pthread_cancel@@GLIBC_2.2.5