fix some deprecation warnings in julia 0.4
Merge pull request #56 from mlubin/fixwarnings

fix some deprecation warnings in julia 0.4