Add option (default ON) to build shared libs.