Make Setup.hs compatible with both new and old cabal and switch to libtool. #46