move ext source to linear_models for build static