fix MKWAIT_EXIT macro