Replace compatibility code with Compat.jl, compatibility fix
Don't do arithmetic on Chars, not allowed in Julia 0.4
Merge pull request #718 from JuliaStats/track04

Julia 0.4 compatibility fixes