Use an up to date version of Pressflow.
Add a custom module to the install profile.