Fix MSVC warnings for etc.c