Possible these laws have a specific line about not being waiveable via contract, a la our renter protection laws. I seem to remember that might be the case for the non-compete, and I'd be surprised if the non-solicit voiding law wasn't the same.
However, I think the explicit codification also prevents that. AFAIK, once something is in state code as a requirement/prohibited/void action you can't personally waive that.