set BUILD_SHARED_LIBS as a option for each subproject. Default to ON