adapted to ruby 1.9 - See https://github.com/eostrom/kelp/commit/76024695ef2cc682b5490536efa5dcfacfaeb909