Fix deprecation warnings for Version usage