Added support for WaitForMultipleObjectsEx