Fixes for older FF and GM versions.

See scriptish/scriptish#89.