Multiple changes

- Fixed a problem with parsing LDFLAGS in the configure.py script.
- Replaced the M_PI macro with the math::Pi() function in an example.