Dynamic libraries loading fixed.

There were many problems with the SpatiaLite dll, which
have been fixed by replacing it with another version.
Also made the versions homogeneous in both OS.