[amule] Fix compilation with gcc-11