Code cleanup.

-Made Scheduler and Scheduler for Windows code less divergent.
Added fixes for OTRS 3.4.