Apple updates OS X, Safari after spyware exploit found