Using licenses with explicit patent grants in them, a la Apache v2 and AGPLv3, is helpful but licenses can't really fix the software patent problem. Hopefully this helps some to realize the importance of excluding software from the realm of patentability.