Make sure `--disable-static' can work.