cmake patching fix