Fix build error caused by pthread lib order
Fix build error caused by pthread lib order

https://github.com/BVLC/caffe/issues/1327

wangg12/caffe,gnina/gnina,longjon/caffe,CZCV/s-dilation-caffe,gogartom/caffe-textmaps,wangg12/caffe,tackgeun/caffe,tackgeun/caffe,CZCV/s-dilation-caffe,gogartom/caffe-textmaps,wangg12/caffe,longjon/caffe,tackgeun/caffe,gogartom/caffe-textmaps,gnina/gnina,tackgeun/caffe,gnina/gnina,CZCV/s-dilation-caffe,gnina/gnina,wangg12/caffe,gnina/gnina,gogartom/caffe-textmaps,CZCV/s-dilation-caffe,longjon/caffe,longjon/caffe,gnina/gnina