loci: do not generate header classes for messages

Reviewer: trivial

These conflict with the real classes of the same name. Also added the linker
flag that would have caught this.