Added support and example for libm