How to include correct header files? <SOLVED>

By digging a bit deeper I found out about the platform.local.txt file where custom compiler flags can be configured.

I created the file and added the following line:

compiler.cpp.extra_flags=-isystem/usr/avr/include

Everything works fine now.