Added checking for header files in order to get proper define directives in the confi...