Mathieu
There is some optimization. It is better when you use real C/C++ libraries then standard libraries. The problem is around "what are unused variables and what is unused code"
If it used to be better you probably indirectly include the headers.
To identify if and where a header is included: Try renaming a header and compile.
Best regards
Jantje