Add patch from Ermal to fix ifconfig error on gif in certain cases.