math: Fix errors

Fixed undefined reference errors.