improve feature test for memrchr() making it also available on BSD

use memrchr() to implement cx_strrchr() when it is available

fixes regression: missing closing brace in map.h in c++ builds

(0) -1000 -300 -100 -30 -10 -3 tip

mercurial