Fixed deprecation errors in dub