common.mak: fix (not)building disabled libs