enable shared library for orfeotoolbox dependencies

Why did you remove `--with-mutex`?