Fix cmake patch

This was needed on OSX. I think I will be useful for others as well. They have this change on their master.