If you can't upgrade to the latest -- which I would strongly advise by the way -- then your only other option is to resolve the errors yourself in a similar fashion. NGUI 2 line has been deprecated and will not be receiving any new updates.
Also, just because it's a red warning, doesn't mean it won't work. ;)