Changed IFC variable globally and swapped order of searching for headers and libraries.