VC++: Fixed compile error caused by reference to previously deleted file