Added checks for libgnugetopt and towupper