Fixed a couple things

It didn't compile for me, so I changed a few things:
- Moved `#define` out of `envremap.c` and included them in `envtoirr.c`
- Added lib math to `Makefile`

Also, you defined `PI` and then used `M_PI` in your code, so I renamed all of those to use your `#define`.