Changed the order of gperftools libraries in LIBS variable to satisfy other dependencies.