Unification of functions sharted between Windows and Unix