Fix FIXME: implement memrchr for systems without it in libc (thanks, Gary Vaughan)