sort ETS table results in test suite to support R16B
COUCHDB-1699: configure: C++ compiler detection improvement

- amended patch to resolve detection failures on Windows, OSX, and gentoo