Fix compiling when popt is available.