[misc] Fixed a few deprecation warnings