Add _callback_event for Linux/Windows compatibility