Merge pull request #842 from NielsCharlier/master

Geopackage: close connections.
Fixing build