Fix for MinGW cpp