Added environment variable override for node count.

Added missing header on Windows.