Use amdefine for AMD compatibility