fix issue87: build shared libs only with cmake -DSHARED_ONLY=True