Linted and fixed compilation without profiler.

Signed-off-by: Michael Lippautz <michael.lippautz@gmail.com>