kdtree: include alloca.h if the system has it
Fixes build error on Solaris with gcc 14:
../libgweather/third-party/kdtree.c: In function ‘kd_insertf’:
../libgweather/third-party/kdtree.c:224:38: error: implicit declaration
of function ‘alloca’ [-Wimplicit-function-declaration]
224 | bptr = buf = alloca(dim * sizeof *bptr);
| ^~~~~~
Signed-off-by: Alan Coopersmith