libm: make optimization flags more universal (LIBM_OPT) instead of the CPU variant