XPO Logistics Trims 2Q Loss, Plans Acquisition