[BUGFIX] Several fixes to make the extension work with TYPO3 6.1