Windows compatibility fixes
Fix: use PI instead of M_PI