rename SYSTEM_* to OS_*, also add OS_TYPE constant