Trying to patch app_directory.c for first and last name sear

Hi there,
I am running Aterisk- I wanted to patch my app_directory.c so that people can search on first or last names without having to create additional IVR prompts. When I try to use the patch found here:
The patch failes on all hunks accept the first. Any ideas?