Added support for compiling under dmd v2.066

Also maintains compatibility with 2.065