Update native.c

add support mingw32