Various shims for Scala