Add option to build shared libs