Fix the compilation on Android because of incomplete libc.

The nanf function is missing.