Added static and dynamic lib output for wrapper to support complex linking strategies (necessary for e.g. haskell's build system).