Support Ruby versions < 1.9.2.