fix building against ruby 2.0