Use system libinih-dev The vendored inih and its license text are excluded via Files-Excluded. Use the system ini.h and inih library. Don't try to install the removed license file. -linih is added to OS_LIB to ensure the libretro plugin also links it.
Don't install excluded res/licenses/rapidjson.txt The vendored RapidJSON and its license text are excluded via Files-Excluded. Don't try to install the removed license file.