dil: fixed goto errors due to new DMD version.

* Also fixed: const member variables need to be static or enum.