Session Layer: fixed compiler warnings