This patch correctly solves the issue I had raised in bug18. There I had a complete wrong approach that effectualy disabled the effects of TRIO_MINIMAL (although it did let me compile unaware of it).
Solves compilation / linking problems when using -DTRIO_MINIMAL