Added header location guess. Ported to MinGW.