Misc fixes
Fixed compile error on ckb-pinwheel due to M_PI being undefined