plugins: fix build on some glibc systems