fix mingw c compiler casting