Set option to build shared libraries