Fix event waiting in apps, where corner cases would cause the process to hang
Add 32-bit rtimer back, actually needed even with wakeup interval of 500ms because we add some jitter in the wakeup