One model that does work quite well: release code under a copyleft license, and charge for licenses/exceptions that allow linking to proprietary software.
Next time you're thinking of releasing some code under an all-permissive license, consider using a copyleft license instead, which leaves you with options in the future.