Better error messages and less bugs in ./configure (#425, #426)
Merge review 247 by @mlucy (Fix #425 #426)