Removing the `shared=1` directive will almost certainly break things.  This is needed to generate shared libraries.