Fix regression in -warn-error enabler/disabler
Remove dead-code
Fix 4.02 support
Add some configuration checks to test if external packages are installed
Final fixed for 4.02