Turns out I was missing the libsdl2-ttf-dev package. Oops.