remove pointer type warnings when building with mingw