Fixed debug compilation on mingw