Add LIBM for test_stats