Don't announce we're leaving, set any dates. Just gradually start packing and leave. Wait for them to figure it out and beg us to stay, then make demands and set deadlines for things they must accomplish.
And if/when they don't, pack up some more troops and ship them home. Repeat until Iraq gets its act together, or all our troops are out.