Fix deprecation warnings
Merge pull request #24 from JuliaLang/sjk/deprecation

Fix deprecation warnings