add ios 5 compatibility code (depends on PSTCollectionView)