Build errors when building on QNX Momentics IDE

I've downloaded the QNX Momentics IDE (version 2.0.0) and the Box2D code from the Blackberry github site (blackberry-Box2D-v2.2.1-0-gfcd2627).

When I try and build it using the instructions in the readme I get a number of errors:
cosf was not declared in this scope (b2Math.h line 319)

Similarly with floorf, sinf.

I also get "cannot find -lBox2D" in Testbed.

Given that the IDE and the code both come from Blackberry I would have thought it builds OK. Is there something fundamental I'm doing wrong, or do I need to do some research on each of the errors? I can do that, but I wondered if there's a simple solution to the build problems.

Original thread: https://box2d.org/forum/viewtopic.php?t=8513