Build fix

I changed the struct CLFunction to class since it has already forward declaration as a class
Additionally i fixed  a format string in src/core/threading.cpp