Note that solutions in this post do not help (although apparently worked to resolve that issues):
Specifcally those were A) renaming to <cmath.h> and choosing the right port/board settings.
The board is a Mega 2560 by the way, in case that matters...