More fixes to make compilation possible.

This time: library messages.

We'll put ATTACK where it belongs later.

Compilation is still not possible.