fix external and prebuilts