Correct compilation errors with DMD 2.066