Added shared option to cmake