fixed mingw-gdc errors