Only declare osxversion once