Use opt_prefix to avoid broken link when dependencies upgrades.

* Don't unset __GLIBCXX_DEBUG* as original bug didn't actually do that.