Clean up gcc detection in Makefile.
Made fields output in the working directory (insted of ./fields) for
compatiability with Turing.