Various compatibility fixes for Julia 0.2