Support experimental :moved-xxx declarations. Fix compile errors.