Fix ruby 1.9 issue with DelegateClass

Change-Id: Id10b8bb08f503142c3a310bd2299ef59ed9bcf07