Fixed: some stuff to make the library work with typo3 flow