Let libtool figure out how to export symbols

It knows exactly how to pass the correct flags
to the linker.
Merge pull request #1985 from rubenk/use-libtool-setting-for-symbol-export

Let libtool figure out how to export symbols