Fixed timer/semaphore use-after-free bug, re-enable scheduler (no idea why it wasn't enabled before...)