Try to fix pthread link problem in ubuntu 14.04