added amdefine as hard dependency