i am not sure whether your controller supports retain data or not.
i have not seen any controller without retain before, however persisitent could be a problem.
in the case you have a controller with limited iec61131 capability all you can do is to open the library as a project and delet all retain and or persitent labels in the library
then save as internal library again and you have created a library without retain or persistent