libm build workaround