Dynamic library

And don't use libtool directly.
Also use shared lib test.
LD_LIBRARY_PATH for linux.