Replace build system.
Update to new PNG API
Support variant-specific acconfig header.
Fix some build a test failures.
Update demo apps.