Fix compiling errors - TRQ-1585 - slow job submission leads to pbs_server crash.