Made the framescheduler compile correctly, added the skeleton for its tests and fixed about a dozen warnings.