Compile static links.