replace settings app
There's no other way to change the "unknown sources" setting, but if you root the phone you can find apps to toggle USB debugging simply by searching on Google Play.

There's no way to replace the settings app without replacing the whole ROM. The settings app is just too closely tied to the rest of the system: it's not designed to be replaced.