core: math: Fix compilation issues on Linux