Link against libm on Linux.
Switch from floorf to floor.