popt option fix for mingw32