Fix deprecations for julia 0.4