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.
Merge pull request #5 from ros/do_not_force_shared

Do not force SHARED library