Add a missing include for wait on non-windows