kernel/trace: Fix compile errors on GCC 4.6