Fix for compilation error on task.h for snprintf