Fixed "multiple definitions of exitflag" link error in certain situations.