Errors now go to stderr.
Fixed missing #if WINDOWS