Added environment variable override for node count.

Added missing header on Windows.
Fixed race in Node.GetFutureForMessages