fixed missing include for some older versions of g++ + improved default progress func