add |wait_for_work| for ui loop to reduce the CPU rate.
1 add MsgWaitForMultipleObjectsEx win32 syscall.
2 add SetTimer win32 syscall
3 add message_pump_t and message_pump_delegate_t interface
4 add ui_message_pump_t for windows