added latest changes from facebook/xhprof to add PHP 5.5 compatibility + cleaned up unreferenced variables