Chains: move to building RE in core and exporting file to prevent using internal lib functions in ZCI-Spice.