add lib/ and external/