Fixed a bug related to the arguments to the shared library linking step.