Little bit more windows friendly.

builds with mingw