If an app uses freetype, it should get the flags from pkg-config (pkg-config --cflags freetype2). Some distros install freetype differently so this is not needed and so such a build can accidentally work. Check your pkg-config returns the correct flags; if it does, then check how dwm's configure process checks for it. If it doesn't, you will need to add it, via env flags or configure flags.