configure: fix libnuma_v2 probe to work with -Werror