asc: fix build for gcc47
sword: fix build with gcc47 via a patch from Gentoo