Refactoring _CRT_SECURE_NO_WARNINGS