fix deprecation warnings from latest dmd