possibly fix odd strdup error in mingw.