@Marciokoko
There are several reasons to why link-time-optimization is not enabled in the Arduino IDE build.
The first step is to get the source code right. There seems to be a lot of confusion on how to structure code with header files, use inline, name spaces, classes, virtual member functions, templates, etc. But considering that most libraries are written by students (often Media) and not by professionals this should be expected

Cheers!