more ec compat work for non-ec rubies