compilers: fix Ruby 1.8.2 compatibility

Fixes #263.