Fix typo when generating a shared library