regcomp.c: make non-_LIBC implementation of build_range_exp consistent