fixed wrong path variable in libtool, from #2491