Fix compatibility issues for TYPO3 6.2

Reference: #6