fixing windows detection
clarify arg to main func macro