Fix build errors from change namespace from utils to math.