[Olena-patches] 450: Add some math functions and clean up file deps.