Make, printf and M_PI fixes