automake: add basic libtool support