Add support for building and running shared libraries in Linux