SERVER-8467 Don't pass -rdynamic on OS X

On OS X, clang ignores -rdynamic, but issues a warning, which can
be a problem if -Werror is in effect. Remove the flag because
-rdynamic is not needed on OS X.
SERVER-9824 Add jstest
SERVER-9856 check in-progress indexes for duplicates in prepareToBuildIndex()
SERVER-9853 retry ghostsync percolate if socket failure

Without this fix, depending on exact timing of upstream socket failure, you could lose
a chaining upstream oplog position update from a secondary.  This might then cause
a write with a certain level of write concern to time out even though enough secondaries
had applied the write.  This problem would be masked by a sufficient number of subsequent
writes, which would trigger another upstream oplog position update.

Note that this only affects chaining; nonchaining updates are already retrying when a socket
failure occurs.
SERVER-9881 Reject attempts to build in C++11 mode with ancient libstdc++
Include what you use in lasterror.h
SERVER-9846 Make master/slave auth test use keyFile