Why does my prog have a fatal error after it is compiled into *.exe