tools: fix linker error with newer libtool