amd/addrlib: fix the C++ one definition rule violation