fix for importing Dates in 0.4

See https://github.com/JuliaLang/julia/issues/8164