Bring back 2.6 compatibility.

Also, the compat module had the lru_cache recipe copied in twice.
Prepare new version.