deal 2 warnings when compile with mingw32 in windows