Make everything compile as a shared library