gdal: link proj4 statically

Under normal circumstances, gdal loads libproj at runtime using
dlopen(), but this fails when installed in non-standard locations. Link
statically instead, which is what most other package managers seem to be
doing anyway.

Closes #18294.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>