make it compailable with MinGW