Do not force SHARED library

We need static for cross compiling portability, and to compile this we had to patch this file since it does not obey the system settings.