fix typo in configure option name
fix external build