[cmake] add some flags to lib
[functions.interfaces] reimplement alpha and gamma computation

* include theta = 1 for the affine part
* share implementation