Log to file and get rid of MFC