Fix xhprof integration, install xhprof through composer and build xhprof through composer.

As title. Refs #5995.