Fixes for dmd 2.061

DWT fixes for dmd 2.061.

The new dmd check was severe, so had been missed errors has occur now. I fixed that errors.