tools: fix libtool bootstapping on macOS