Apparently there is some limitation on length of the paths with Keil. The paths are specified under "Options for Target" --> C/C++ --> "Include Paths". Due to this limitation paths look like this:
..;..\..\..\..\..\include;..\..\..\..\..\include\app_common;…