Option to build shared libararies