deprecation fixes for dmd 2.061