Help Compiling Moonlight with a More Recent SDL2

While the AppImage for Moonlight works fine, I would like to be able to manually compile a working version. However, on my system with an AMD card, I run into this issue where it segfaults attempting to load nvcuvid. At the moment, the only response points out that I have compiled it with an old version of SDL2. While I was able to successfully compile and install SDL 2.28.5, make still uses the apt-provided libraries of SDL2.

I think the key difference is that the apt-provided libraries are in /usr/include/SDL2 while the manually installed ones are in /usr/local/include/SDL2. How do I tell make to use the updated libraries?