Better error messages and less bugs in ./configure (#425, #426)