Fix error on Linux with Ruby 1.8