making platform wrapper for mingw windows