Implemented TYPO3_version constants and removed the workaround

Implementation of the TYPO3_version constants instead of the deprecated $GLOBALS variant and removed the workaround.