Put the common sources in a shared lib.