fix amd build