Building extractable libraries