Fixing build errors left over from merge of develop into this branch. Also moving toQDateTime from JobState.hpp to DateTime.hpp.

[#53229997]