IMF agrees deal to help ailing Iraqi economy