fix wrapper generation for Math.* libfuncs