2.0: configure: Some enhancements and bugfixes