I think the constants have different values on windows so you cannot rely on the constants here. I might be remembering wrong though.