Generate libtool to the build directory

It is for detecting shared library extension.