autotools: fix shared library generation on *nix systems

Actually the shared library generated was an empty stub