Fix Julia 0.4 deprecations and remove redundant Rmath code