Remove Main.hs

Made up my mind to use C
Start coding ANC4 in C
Import getline() from gnulib

Makes work with mingw
Fix diagnostics by properly pre-setting MAX_DISTANCE