IMF agrees to extend Sri Lanka loan program