Fix warnings under Windows and with Qt-Creator

from compiler, cmake and build environment