Fixed compile errors on Linux after rest session naming convetion change