move float_lerp() to mathutils
Correct missed static scoping of functions and mark unused static functions as such