Little code and dependencies improvement in configure.sh

 The package 'build-essential' depends on the package 'gcc' and 'g++'.
Merge pull request #1114 from abderraouf-adjal/patch-3

Little code and dependencies improvement in configure.sh