libs/re: fix build with musl and glibc