Add the buildgdal.sh script to automate the building of dependencies and add support in the build system for the local dependencies.