Fixed a crash in WSSAnvil.

Reported as #1448.
Fixed compiler warnings in 1.8 protocol.