enable shared library for orfeotoolbox dependencies

building libgeotiff using cmake, it checks for projects.h and build fails