Fix compilation error for DMD master. Fixes #765.