compile for java 7
Replace the casts in setCountAndOffset with reflection
Replace the casts in getLiveList with a write-once object for the list
formatting