gdal: Avoid $(PKG)_BUILD_SHARED

Regression from 0e39fbcb46b13d0822a5162186416611338de4f4.

Fixes #535.

Signed-off-by: Timothy Gu <timothygu99@gmail.com>