fixed a number of compilation errors and warnings that piled up during different parts of the Scheduler integration project