Rebuild to export only declared public headers