web: fix compilation on 0.10.2
socket: fix compilation on 0.10.2