enable shared library for orfeotoolbox dependencies

I dont know how to handle static case here. Do you have any input?