Added lib math to `Makefile`, renamed M_PI to PI and added missing `#define` in `envtoirr.c`