Avoid using "not" and "and" that makes compilation fail on Windows