[TASK] TYPO3 6.x compatibility fixes

Change-Id: I64aee86d55b09d2450bddc3513bb4df8ce4afe3e
Reviewed-on: https://review.typo3.org/24379
Reviewed-by: Stefan Rotsch
Tested-by: Stefan Rotsch