set the os type early.