Revert "configure: fix static link with popt"

This reverts commit 1f759e57e8c0682613eaaf89a46fdf6db4c6b5cd.