Fix compilation warnings for Windows

Merged Jane Tournois requested to merge Fix_warnings-GF into master

The commits in this branch fix the compilation warnings for msvc2013, 64 bits.

Most of them are conversion warnings between int and size_t.

Merge request reports