constness fix for D 2.066

Since D 2.066, the C/C++ const style for function return type is now disallowed.