Add constructor using an existing stream
Fix "Closed stream" exception in getDatabaseInfo()

happening when using GEOIP_MEMORY_CACHE option
Merge remote-tracking branch 'remotes/origin/fix_getdatabaseinfo'