TYPO3 6.2 compatibility

Maybe some other functions are deprecated , but still working. This works with TYPO3 6.2.0.