Fix MSVC warnings for proc.c