fix problem for amsedd linking