Direct link as per Ramon's email.
Merged pull request #761
PHP-1270: MongoDate->toDateTime is only supported for PHP 5.3.4 and later.
Merged pull request #760
Fixed PHP-1267: Windows Build Failure
Rename variable to be consistent with its friends
Reduce the size of the buffer, to_read*2 seems like a good fit

Also remove unnecessary MIN() checks
PHP-1267: Fix header includes