Move var def to ifdef