Mongo master pull request gridfs

Some cleanup done after pull from master.
Warnings removed from mongo.c when compiling in Visual Studio.
Removed Warning on _CRT_SECURE_NO_WARNINGS when compiling bson.c if already defined globally.