[TASK] TYPO3 6.x compatibility fixes