Improved configure script
Merge branch 'master' into fmemopen