MSVC 2003-equivalent function for SignalObjectAndWait