replace std.math with core.stdc.math for 64-bit compatibility