Remove several unneeded configure hacks. Replace the POPT ones with more sensible ones. Refresh patches. Signed-off-by: Rosen Penev <rosenp@gmail.com>