Fix a potential bug in rt_sched_event
Prefix a leading underscore to symbol names on OS X and Windows