Refactor cardos-cardos5.h.

Make cardos-cardos5.h free of code, as suggested by @frankmorgner.
Fix warnings.