Fixed up CMakeLists a little bit, still needs more work. Can compile lin1d.cpp directly with 'g++ lin1d.cpp -lmgl -o lin1d', but output from MathGL is still wrong (data file is different format than it expects?).