Modify mkngram.py so that we compile with -lm compiler flag, update creation of configuration file such that genprog is aware of our -lm flag