Selling the company: that's not a rare event. An IPO: that's like becoming an actor with the intent of being the next Tom Cruise. There are many, many buyers out there, hardly just Google. If you make something that people need (not merely what they think they want, but what they need) then you will be able to sell.