Add libm.a link to makefile.
Compiled on a different machine for the first time, and it threw a linker error because of the square root. I don't know why it wasn't needed on my other machine, I thought they were running the same packages.