(MSVC) Change etype_t to typedef int for MSVC