Fix some incompatibilities with certain Ruby runtimes.