small changes for julia v0.4 compatibility