Fix breakage on ruby 1.9+