if you change the file config_snmp_pp.h (it does not matter if you disable or enable SNMPv3), you will have to recompile everything: snmp++, agent++ and your application code. There is no way around this.
But you can configure your agent at runtime through the VACM to only allow incoming requests using the desired SNMP version.