[XSP] Replace deprecated method calls with new ones
[WebServer] Fix build on Linux