build: exclude some libraries

Change-Id: Iaf33d71e63c568203b6de77060b487f66ea4fd28