patch for flint's configure

the patch corrects the link order with lpthread
and now  library up-look is done in $(LIBRARIESDIR)/lib,
see https://github.com/Macaulay2/M2/issues/85

Changes passed Dan's review and already merged into the master branch.