Progress in mingw32

 - Fix deprecated warning
 - Compile fixes on mingw