Fix C++11 condition_wait_for.
Fixed buffer overflow in WindowEx::RefreshWindowParams caused by starting the array at 1.