Does somebody know what the problem is and how do I fix this?
I believe this is a bug in the lazarus package system. It happened before, unfortunately nobody knows why. As a quick fix, just add IdMessageBuilder to indylaz.lpk, rebuild the package, then your project.