Add libtool support: can now be configured with --enable-shared and --enable-static when building the library