SERVER-3364 Introduce MONGO_CLIENT_API macro for labeling types, functions and variables.

Also addresses SERVER-5650.