change linking order such that pthread comes in the back
change linking order such that pthread comes in the back

This resolves an error with the static gflags library which would
other wise not link properly with an undefined reference to symbol 'pthread_rwlock_wrlock@@GLIBC_2.2.5'
error under Ubuntu 14.04.

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