enable shared library for orfeotoolbox dependencies

Please don't do this. Use `$(if $(BUILD_SHARED),ON,OFF)`