You're missing to include cmath here.
https://travis-ci.org/igorko/flare-engine/jobs/12483480

Also why do you need this, as you'd put that to int extra in 4690706212e548e61c446d4a6e30f3c68a63ca41 ?