Mix language setting

Closes #2656 and #2657.
We can do: `case :code.ensure_loaded(Application) do {:module, Application} -> call_it end`