adding pi
Added header defines

Needs to be tested on GCC still
further modifications
removed erroneous code
Merge pull request #15 from Zardvark/2.8-PlatformIndependence

2.8 platform independence
Pulled master changes