Use -idirafter rather than -I for header includes. This resolves conflicts caused by left-to-right preference of -I