Updated code for TYPO3 6.0
Commented out code related to patches for very old TYPO3 versions