Compatibility to Julia v0.4

Requires Compat.jl