Add FACT_STATISTICS compilation flag.
Update scripts.