Replace calls to mgpu::MergePath with our own implementation.