disable 4996 warning in main.cpp