Merge changes Idf402222,I8eb7e341

* changes:
  Start auto-generating the stats log API.
  Make bit able to build native tests.