add a compatible memrchr() function if the platform does not support it (e.g. old...