fix Makefile in tools/performance

move $(LIBS) to the end of gcc parameters.
http://stackoverflow.com/questions/14623415/gcc-g-parameter-order