You have DOS line endings in your patch. A simple dos2unix fixes this.

Thank you 
Attached the patch with unix line endings
Seb