Switch to TRACE, include stdio.h when debugging for printf

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>