Added -DPIC option on shared library.