Apple plays defense and offense with free software, upgrade strategies