Add patch to fix compilation errors.