Fix Julia 0.4 deprecations warnings