Revert "Disable shared"

This reverts commit be16fd6e20d437dc321326a8c25dcda576f55536.