Fix extension and scala compiler