fix build against uClibc++, add libtool fixes, cleanup