Fix compilation on DMD 2.063.2 and remove const from Session getter methods.