fix some compile error for mingw
rename TB_FILE_MODE_AICP