configure.ac updates, fixes, rework and cleanup plus internal symbols hiding.

Please, merge the proposed changes.