Fix deprecations from JuliaLang/julia#8578