The solution is probably to be more selective what you're open sourcing if you're planning to build a business. And what you open source, you do it under a permissive license so people don't feel limited should they wish to play around with it.
A more restrictive license might be more apt if you don't really want to open source, but you must for regulatory reasons.