Refactored scheduler
Added __lios_startup() and implemented exit() system call